<template>
   <div>
     <p class="weekend_title">周末去哪儿</p>
     <ul class="weekend_list">
       <li class="weekend_item border-bottom" v-for="item of weekendList" :key="item.Id">
         <div class="img_wrap">
           <img class="item_img" :src="item.imgUrl" >
         </div>
         <div class="item_info">
           <p class="info_title">{{item.title}}</p>
           <p class="info_desc">{{item.desc}}</p>
         </div>
       </li>
     </ul>
   </div>
</template>

<script>
export default {
  name: 'HomeWeekend',
  props: {
    weekendList: Array
  },
  data () {
    return {
    }
  }
}
</script>

<style lang="stylus" scoped>
@import '~styles/mixins.styl'
  .weekend_title
    font-size .32rem
    margin-bottom 0.1rem
    line-height .8rem
    background #eee
    text-indent .2rem
  .weekend_item
    width 100%
    display flex
    flex-direction column
    overflow hidden
    .img_wrap
      width 100%
      height 0
      padding-bottom 37.6%
      overflow hidden
      .item_img
        width 100%
    .item_info
      min-width 0
      padding .1rem
      .info_title
        line-height 0.54rem
        font-size .32rem
        ellipsis()
      .info_desc
        line-height .4rem
        color #ccc
        ellipsis()

</style>
